<!-- 活动参加成功 -->
<template>
	<view class="shopro-empty-wrap u-flex-col u-row-center u-col-center" :style="{ 'padding-top': paddingTop }">
		<image class="empty-img" :src="image" mode="aspectFill"></image>
		<view class="empty-text u-tips-color u-font-26">{{ tipText }}</view>
		<view class="btn-box" v-if="btnText">
			<button class="u-reset-button empty-btn" hover-class="none" @tap="router">{{ btnText }}</button>
		</view>
	</view>
</template>

<script>
	/**
	 * 活动参加成功
	 */
	export default {
		name: 'shoproEmpty',
		data() {
			return {
				image: '/static/images/work_success.png',
				tipText: '参加成功',
				btnText: '返回',
				paddingTop: 300 + 'rpx',
				add: ''
			};
		},

		onLoad(e) {
			this.add = e.type
			if (e.type == 'login') {
				uni.setNavigationBarTitle({
					title: '提交审核'
				})
				this.tipText = '信息提交正在审核'
			}

		},
		methods: {
			router() {
				if (this.add != 'login') {
					this.$Router.replace('/pages/index/news')
				} else {
					this.$Router.replace('/pages/index/index')
				}
			},
			jump(path, query) {
				this.$Router.push({
					path: path,
					query: query
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	uni-page-body {
		background: #fff;
	}

	.empty-img {
		width: 540rpx;
		height: 290rpx;
	}

	.btn-box {
		width: 100%;
		margin-top: 200rpx;
	}

	.empty-btn {
		width: calc(100% - 240rpx);
		height: 70rpx;
		line-height: 70rpx;
		background: #E77817;
		border-radius: 40rpx;
		font-size: 28rpx;
		color: rgba(#fff, 0.9);
		margin: auto;
	}
</style>